package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.SpecialOfferDao;
import io.renren.entity.SpecialOfferEntity;
import io.renren.service.SpecialOfferService;



@Service("specialOfferService")
public class SpecialOfferServiceImpl implements SpecialOfferService {
	@Autowired
	private SpecialOfferDao specialOfferDao;
	
	@Override
	public SpecialOfferEntity queryObject(Integer id){
		return specialOfferDao.queryObject(id);
	}
	
	@Override
	public List<SpecialOfferEntity> queryList(Map<String, Object> map){
		return specialOfferDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return specialOfferDao.queryTotal(map);
	}
	
	@Override
	public void save(SpecialOfferEntity specialOffer){
		specialOfferDao.save(specialOffer);
	}
	
	@Override
	public void update(SpecialOfferEntity specialOffer){
		specialOfferDao.update(specialOffer);
	}
	
	@Override
	public void delete(Integer id){
		specialOfferDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		specialOfferDao.deleteBatch(ids);
	}
	
}
